package com.woniu.liuzhougov.itemAndTask.service.impl;

import com.woniu.liuzhougov.itemAndTask.dao.ItemTypeMapper;
import com.woniu.liuzhougov.itemAndTask.pojo.ItemType;
import com.woniu.liuzhougov.itemAndTask.service.ItemTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Transactional(rollbackFor = Exception.class)
@Service
public class ItemTypeServiceImpl implements ItemTypeService {

    @Autowired
    private ItemTypeMapper itemTypeMapper;


    /**
     * 查询所有 事项 类型
     * @return
     */
    @Override
    public List<ItemType> searchAllTypeOfItemType() {
        return itemTypeMapper.searchAllTypeOfItemType();
    }
}
